﻿@model SportsStore.WebUI.Models.ProductsListViewModel
@{
    ViewBag.Title = "List";
}
<h2>List</h2>

@*
@foreach (var p in Model.Products)
{
    <div class="item">
    <h3>@p.Name</h3>
    @p.Description
    <h4>@p.Price.ToString("c")</h4>
    </div>
}
*@
@foreach (var p in Model.Products) {
Html.RenderPartial("ProductSummary", p);
}


@*<div class="pager">
@Html.PageLinks(Model.PagingInfo, x => Url.Action("List", new {page = x}))
</div>*@

<div class="pager">
@Html.PageLinks(Model.PagingInfo, x => Url.Action("List", new {page = x, category = Model.CurrentCategory}))
</div>